package ltd.jdsoft.cute.captcha.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import ltd.jdsoft.cute.spring.web.controller.ApiVersion;

@RestController
@RequestMapping(value = ApiVersion.V1_PREFIX + "common")
public class CaptchaController {

  /**
   * 获取验证码
   * 
   * @param type 验证码类型，定义在CaptchaTypes中
   * @return
   */
  @RequestMapping(value = "/captcha", method = RequestMethod.GET)
  public String getCaptcha(int type, HttpServletRequest request) {
    return null;
  }
}
